package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the TASK database table.
 * 
 */
@Entity
public class Task implements Serializable {
	private static final long serialVersionUID = 1L;
	private long taskid;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String isactive;
	private String taskdesc;
	private String taskname;
	private List<Eventtask> eventtasks;
	private List<Eventuserresponse> eventuserresponses;

    public Task() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getTaskid() {
		return this.taskid;
	}

	public void setTaskid(long taskid) {
		this.taskid = taskid;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	public String getTaskdesc() {
		return this.taskdesc;
	}

	public void setTaskdesc(String taskdesc) {
		this.taskdesc = taskdesc;
	}


	public String getTaskname() {
		return this.taskname;
	}

	public void setTaskname(String taskname) {
		this.taskname = taskname;
	}


	//bi-directional many-to-one association to Eventtask
	@OneToMany(mappedBy="task")
	public List<Eventtask> getEventtasks() {
		return this.eventtasks;
	}

	public void setEventtasks(List<Eventtask> eventtasks) {
		this.eventtasks = eventtasks;
	}
	

	//bi-directional many-to-one association to Eventuserresponse
	@OneToMany(mappedBy="task")
	public List<Eventuserresponse> getEventuserresponses() {
		return this.eventuserresponses;
	}

	public void setEventuserresponses(List<Eventuserresponse> eventuserresponses) {
		this.eventuserresponses = eventuserresponses;
	}
	
}